// 定义一些路由
import Index from "../pages/Recommend.vue";
import Team from "../pages/TeamPage.vue";
import UserPage from "../pages/UserPage.vue";
import UserUpdatePage from "../pages/UserUpdatePage.vue";
import UserTeamJoinPage from "../pages/UserTeamJoinPage.vue";
import UserTeamCreatePage from "../pages/UserTeamCreatePage.vue";
import SearchPage from "../pages/SearchPage.vue";
import SearchResultPage from "../pages/SearchResultPage.vue";
import UserEditPage from "../pages/UserEditPage.vue";
import UserLoginPage from "../pages/UserLoginPage.vue";
import TeamAddPage from "../pages/TeamAddPage.vue";
import TeamUpdatePage from "../pages/TeamUpdatePage.vue";
import UserRegisterPage from "../pages/UserRegisterPage.vue";
import EditAvatar from "../pages/EditAvatar.vue";
import EditTag from "../pages/EditTag.vue";
import ChoiceSearch from "../pages/ChoiceSearch.vue";
import SearchPageByUsername from "../pages/SearchPageByUsername.vue";
import home from "../pages/home.vue";
import Recommend from "../pages/Recommend.vue";
import PageUser from "../pages/PageUser.vue";
import SearchByNameResultPage from "../pages/SearchByNameResultPage.vue";
import SearchTeamResultPage from "../pages/SearchTeamResultPage.vue";
import FriendInfoPage from "../pages/FriendInfoPage.vue";
import Page1 from "../pages/Page1.vue";
import Page2 from "../pages/Page2.vue";
import Page3 from "../pages/Page3.vue";
import Page4 from "../pages/Page4.vue";
import Setting from "../pages/Setting.vue";
import AccountAndSafe from "../pages/AccountAndSafe.vue";
import ChangePassword from "../pages/ChangePassword.vue";
import AdminLoginPage from "../pages/AdminLoginPage.vue";
import AdminRegisterPage from "../pages/AdminRegisterPage.vue";
import TeamInfo from "../pages/TeamInfo.vue";
const routes = [
    { path: '/index',
        component: home,
        children:[
            {
                path: '/user/recommend',
                component: Recommend,
            },
            {
                path: '/user/page',
                component: PageUser
            }
        ]
    },

    {path: '/change/password',component: ChangePassword},
    {path: '/safe',component: AccountAndSafe},
    {path: '/setting',component: Setting},
    {path: '/notice/page1',component: Page1},
    {path: '/notice/page2',component: Page2},
    {path: '/notice/page3',component: Page3},
    {path: '/notice/page4',component: Page4},
    {path: '/friend/info',component: FriendInfoPage},
    {path: '/team/searchResult',component: SearchTeamResultPage},
    {path: '/user/recommend',component: Recommend},
    { path: '/team', title: '找队伍', component: Team },
    { path: '/team/add', title: '创建队伍', component: TeamAddPage },
    { path: '/team/update', title: '更新队伍', component: TeamUpdatePage },
    { path: '/user', title: '个人信息', component: UserPage },
    { path: '/search', title: '找伙伴', component: ChoiceSearch },
    { path: '/user/search', title: '根据用户昵称搜索用户', component: SearchPageByUsername },
    { path: '/user/searchResult', title: '用户列表', component: SearchByNameResultPage },
    { path: '/tag/search', title: '根据标签搜索用户', component: SearchPage },
    { path: '/user/list', title: '用户列表', component: SearchResultPage },
    { path: '/user/edit', title: '编辑信息', component: UserEditPage },
    { path: '/avatar/edit', title: '编辑用户头像信息', component: EditAvatar },
    { path: '/tag/edit', title: '编辑用户标签信息', component: EditTag },
    { path: '/user/login', title: '用户登录', component: UserLoginPage },
    { path: '/admin/login', title: '管理员登录', component: AdminLoginPage },
    { path: '/', title: '登录', component: UserLoginPage },
    {path: '/user/register', title: '用户注册', component: UserRegisterPage},
    {path: '/admin/register', title: '管理员注册', component: AdminRegisterPage},
    { path: '/user/update', title: '更新信息', component: UserUpdatePage },
    { path: '/user/team/join', title: '加入队伍', component: UserTeamJoinPage },
    { path: '/user/team/create', title: '创建队伍', component: UserTeamCreatePage },
]

export default routes;
